package com.cskaoyan.controller.vx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.bo.vxBo.FootPrintBO2;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.po.wxPo.MarketFootprint;
import com.cskaoyan.bean.vo.vxVo.FootPrintVO;
import com.cskaoyan.service.vx.FootPrintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wx/footprint")
public class FootPrintController {

    @Autowired
    FootPrintService footPrintService;

    @RequestMapping("list")
    public BaseRespVo list(BaseParam baseParam){
        FootPrintVO footPrintVO1 = footPrintService.quaryFootPrint(baseParam);
        return BaseRespVo.ok(footPrintVO1);
    }

    @RequestMapping("delete")
    public BaseRespVo delete(@RequestBody MarketFootprint marketFootprint){
        footPrintService.deleteFootPrint(marketFootprint);
        return BaseRespVo.ok(null);
    }
}
